import { defineStore } from 'pinia'


type data = {
    count:number,
    userInfo:any
}

export const useDataStore = defineStore('main',{
    state:():data=>{
        return {
            count:1000,
            userInfo:null 
        }
    },
    getters:{

    },
    actions:{
        changeCount(payload){
            this.count+=payload;
        },
        changeUserInfo(payload){
            this.userInfo = payload;
        }
    }
})